package com.biz.primus.ms.thirdlogin.trans;

import com.biz.primus.model.thirdlogin.vo.OAuthMemberVo;
import com.biz.primus.ms.thirdlogin.dao.po.OAuthMember;
import com.google.common.base.Function;
import org.springframework.beans.BeanUtils;

import javax.annotation.Nullable;

/**
 * @author jun.liu
 * @date 2017/10/10
 */
public class OAuthMemberToOAuthMemberVo implements Function<OAuthMember, OAuthMemberVo>
{

    @Nullable
    @Override
    public OAuthMemberVo apply(OAuthMember po)
    {
        OAuthMemberVo vo = new OAuthMemberVo();
        BeanUtils.copyProperties(po, vo);
        return vo;
    }
}
